﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.Model
{
    public class ResultBase
    {
        /// <summary>
        /// 响应状态码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>        
        public bool IsSuccess { set; get; }

        /// <summary>
        /// 提示信息
        /// </summary>        
        public string Message { get; set; }
    }

    /// <summary>
    /// 返回对象
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultBase<T> : ResultBase
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
